<!-- HTML header for doxygen 1.8.18-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=9" />
    <meta name="generator" content="Doxygen 1.8.16" />
    <meta name="viewport" content="width=device-width, initial-scale=1" />
    <title>LEAF: tTri</title>
    <link href="tabs.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="jquery.js"></script>
    <script type="text/javascript" src="dynsections.js"></script>
    <script src="/js/template.js"></script>
     <link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
  $(document).ready(function() { init_search(); });
/* @license-end */
</script> 
    <link href="doxygen.css" rel="stylesheet" type="text/css" />
    <link href="customdoxygen.css" rel="stylesheet" type="text/css"/>
    <link rel="stylesheet" href="/css/tachyons.css" type="text/css" />
  </head>
  <body class="bg-washed-green black-70 ph0 sans-serif">
    <header></header><script>getHeader()</script>
    <div>
      <!-- do not remove this div, it is closed by doxygen! -->
      <div id="titlearea">
        <table cellspacing="0" cellpadding="0">
          <tbody>
            <tr>
            </tr>
          </tbody>
        </table>
      </div>
      <!-- end header part -->
    </div>
  </body>
</html>
<!-- Generated by Doxygen 1.8.16 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li class="current"><a href="modules.html"><span>Modules</span></a></li>
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li><a href="examples.html"><span>Examples</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
</div><!-- top -->
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">tTri<div class="ingroups"><a class="el" href="group__oscillators.html">Oscillators</a></div></div>  </div>
</div><!--header-->
<div class="contents">

<p>Triangle wave oscillator with polyBLEP anti-aliasing.  
<a href="#details">More...</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:ga84143634f91977f6617ca0b7e50b649d"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ttri.html#ga84143634f91977f6617ca0b7e50b649d">tTri_init</a> (tTri *const osc, <a class="el" href="struct_l_e_a_f.html">LEAF</a> *const leaf)</td></tr>
<tr class="memdesc:ga84143634f91977f6617ca0b7e50b649d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Initialize a tTri to the default mempool of a <a class="el" href="struct_l_e_a_f.html" title="Struct for an instance of LEAF.">LEAF</a> instance.  <a href="group__ttri.html#ga84143634f91977f6617ca0b7e50b649d">More...</a><br /></td></tr>
<tr class="separator:ga84143634f91977f6617ca0b7e50b649d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gabad427341c15462ec3fe9f0b36f3e26c"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ttri.html#gabad427341c15462ec3fe9f0b36f3e26c">tTri_initToPool</a> (tTri *const osc, tMempool *const mempool)</td></tr>
<tr class="memdesc:gabad427341c15462ec3fe9f0b36f3e26c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Initialize a tTri to a specified mempool.  <a href="group__ttri.html#gabad427341c15462ec3fe9f0b36f3e26c">More...</a><br /></td></tr>
<tr class="separator:gabad427341c15462ec3fe9f0b36f3e26c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga49739309d127ae64ee2854d771b04fe2"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ttri.html#ga49739309d127ae64ee2854d771b04fe2">tTri_free</a> (tTri *const osc)</td></tr>
<tr class="memdesc:ga49739309d127ae64ee2854d771b04fe2"><td class="mdescLeft">&#160;</td><td class="mdescRight">Free a tTri from its mempool.  <a href="group__ttri.html#ga49739309d127ae64ee2854d771b04fe2">More...</a><br /></td></tr>
<tr class="separator:ga49739309d127ae64ee2854d771b04fe2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gabf569fb94b1ed5d1695e8c09f9b0f09d"><td class="memItemLeft" align="right" valign="top">float&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ttri.html#gabf569fb94b1ed5d1695e8c09f9b0f09d">tTri_tick</a> (tTri *const osc)</td></tr>
<tr class="separator:gabf569fb94b1ed5d1695e8c09f9b0f09d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gab77b067320cc0124252fdd92d0bcdef0"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ttri.html#gab77b067320cc0124252fdd92d0bcdef0">tTri_setFreq</a> (tTri *const osc, float freq)</td></tr>
<tr class="separator:gab77b067320cc0124252fdd92d0bcdef0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gab6740de0f9cfdfe60f03c4bcb72482f8"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ttri.html#gab6740de0f9cfdfe60f03c4bcb72482f8">tTri_setSkew</a> (tTri *const osc, float skew)</td></tr>
<tr class="separator:gab6740de0f9cfdfe60f03c4bcb72482f8"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<p>Triangle wave oscillator with polyBLEP anti-aliasing. </p>
<h2 class="groupheader">Function Documentation</h2>
<a id="ga84143634f91977f6617ca0b7e50b649d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga84143634f91977f6617ca0b7e50b649d">&#9670;&nbsp;</a></span>tTri_init()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void tTri_init </td>
          <td>(</td>
          <td class="paramtype">tTri *const&#160;</td>
          <td class="paramname"><em>osc</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="struct_l_e_a_f.html">LEAF</a> *const&#160;</td>
          <td class="paramname"><em>leaf</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Initialize a tTri to the default mempool of a <a class="el" href="struct_l_e_a_f.html" title="Struct for an instance of LEAF.">LEAF</a> instance. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">osc</td><td>A pointer to the tTri to initialize. </td></tr>
    <tr><td class="paramname">leaf</td><td>A pointer to the leaf instance. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="gabad427341c15462ec3fe9f0b36f3e26c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gabad427341c15462ec3fe9f0b36f3e26c">&#9670;&nbsp;</a></span>tTri_initToPool()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void tTri_initToPool </td>
          <td>(</td>
          <td class="paramtype">tTri *const&#160;</td>
          <td class="paramname"><em>osc</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">tMempool *const&#160;</td>
          <td class="paramname"><em>mempool</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Initialize a tTri to a specified mempool. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">osc</td><td>A pointer to the tTri to initialize. </td></tr>
    <tr><td class="paramname">mempool</td><td>A pointer to the tMempool to use. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="ga49739309d127ae64ee2854d771b04fe2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga49739309d127ae64ee2854d771b04fe2">&#9670;&nbsp;</a></span>tTri_free()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void tTri_free </td>
          <td>(</td>
          <td class="paramtype">tTri *const&#160;</td>
          <td class="paramname"><em>osc</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Free a tTri from its mempool. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">osc</td><td>A pointer to the tTri to free. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="gabf569fb94b1ed5d1695e8c09f9b0f09d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gabf569fb94b1ed5d1695e8c09f9b0f09d">&#9670;&nbsp;</a></span>tTri_tick()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">float tTri_tick </td>
          <td>(</td>
          <td class="paramtype">tTri *const&#160;</td>
          <td class="paramname"><em>osc</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">osc</td><td>A pointer to the relevant tTri. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="gab77b067320cc0124252fdd92d0bcdef0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gab77b067320cc0124252fdd92d0bcdef0">&#9670;&nbsp;</a></span>tTri_setFreq()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void tTri_setFreq </td>
          <td>(</td>
          <td class="paramtype">tTri *const&#160;</td>
          <td class="paramname"><em>osc</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>freq</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">osc</td><td>A pointer to the relevant tTri. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="gab6740de0f9cfdfe60f03c4bcb72482f8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gab6740de0f9cfdfe60f03c4bcb72482f8">&#9670;&nbsp;</a></span>tTri_setSkew()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void tTri_setSkew </td>
          <td>(</td>
          <td class="paramtype">tTri *const&#160;</td>
          <td class="paramname"><em>osc</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>skew</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">osc</td><td>A pointer to the relevant tTri. ￼￼￼ </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
</div><!-- contents -->
<!-- HTML footer for doxygen 1.8.18-->
<!-- start footer part -->
<footer></footer><script>getFooter()</script>
</body>
</html>
